<h1>Shopping Bag</h1>
<?php
if(isset($this->shoppingbag['userid'])) {
	
	?>
	<table border> <tr> <td>Bag Id</td><td> <?php echo $this->shoppingbag['bagid']; ?></td></tr>  </table>
	<table border="1">
  <tr>
    <td>User Id: </td>
    <td><?php echo $this->shoppingbag['userid']; ?></td>
    <td>Merchandise Total </td><td align="right"> <?php echo $this->shoppingbag['merchandisetotal']; ?></td>
    </tr>
    <tr>
    <td>shippingmethod</td><td> <?php echo $this->shoppingbag['shippingmethod']; ?></td>
    <td>discounttotal </td><td align="right"> <?php echo $this->shoppingbag['discounttotal']; ?></td>
    </tr>
    <tr>
    <td>yaqfFlag </td><td> <?php echo $this->shoppingbag['yaqfFlag']; ?></td>
    <td>yaqfAmount</td><td align="right"> <?php echo $this->shoppingbag['yaqfAmount']; ?></td>
  </tr>
    <tr>
    <td> </td><td> </td>
    <td>totalshipmentfee</td><td align="right"> <?php echo $this->shoppingbag['totalshipmentfee']; ?></td>
  </tr>
   <tr>
    <td> </td><td> </td>
    <td>ordertax</td><td align="right"> <?php echo $this->shoppingbag['ordertax']; ?></td>
  </tr>
   <tr>
    <td> </td><td> </td>
    <td>total</td><td align="right"> <?php echo $this->shoppingbag['total']; ?></td>
  </tr>
  
</table>

	<?php 
	if($this->shoppingbag['bagitems']) {
		echo "<h1>Items </h1><table border>";	
		echo $this->partialLoop('shoppingbag/_partialLoopBagItems.phtml', $this->shoppingbag['bagitems']);
		echo "</table>";
	}
	
} 
else {
	echo "<pre>";
	print_r($this->shoppingbag);
	
}

?>